<?php use_helper('Javascript') ?>
	<?php if ($sf_user->hasCredential('administrador')): ?>
		<h2 id="user1"  class="toggle right">Usuarios
		<?php /*	echo link_to_function('Usuarios',
  				visual_effect('blindDown','user-menu').
  				visual_effect('highlight','user-menu').
  				visual_effect('fade','user1',array('duration' => 0)).
  				visual_effect('appear','user2',array('duration' => 0))
				); */?>
		</h2>
		<h2 id="user2" class="toggle down" style="display:none">
		<?php /*	echo link_to_function('Usuarios',
  				visual_effect('blindUp','user-menu').
  				visual_effect('highlight','user-menu').
  				visual_effect('fade','user2',array('duration' => 0)).
  				visual_effect('appear','user1',array('duration' => 0))
				); */?>
		</h2>
	<div id="user-menu" class="content">
	<!-- <div id="user-menu" class="content" style="display:none"> -->
		<ul>
			<li><?php echo link_to('Gesti&oacute;n de Usuarios','sfGuardUser/index')?></li>
			<li><?php echo link_to('Gesti&oacute;n de Grupos','sfGuardGroup/index')?></li>
			<li><?php echo link_to('Gesti&oacute;n de Roles','sfGuardPermission/index')?></li>
		</ul>
	</div>	
	<?php endif; ?>
	
	<?php if ($sf_user->hasCredential('abogado')): ?>
		<h2 id="admin1"  class="toggle right">Administraci&oacute;n
		<?php /*	echo link_to_function('Administraci&oacute;n',
  				visual_effect('blindDown','administracion-menu').
  				visual_effect('highlight','administracion-menu').
  				visual_effect('fade','admin1',array('duration' => 0)).
  				visual_effect('appear','admin2',array('duration' => 0))
				); */?>
		</h2>
		<h2 id="admin2" class="toggle down" style="display:none">
		<?php /*	echo link_to_function('Administraci&oacute;n',
  				visual_effect('blindUp','administracion-menu').
  				visual_effect('highlight','administracion-menu').
  				visual_effect('fade','admin2',array('duration' => 0)).
  				visual_effect('appear','admin1',array('duration' => 0))
				); */?>
		</h2>
	<div id="administracion-menu" class="content">
	<!-- <div id="administracion-menu" class="content" style="display:none"> -->
		<ul>
			<li><?php echo link_to_remote('Gesti&oacute;n de Acreedores', array(
			'update' 	=> 'modulo',
			'url'    	=> 'administracion/indexacreedor',
			'loading'	=> visual_effect('appear','loading').
							visual_effect('highlight','modulo',array('duration' => 0.5)),
			'complete'	=> visual_effect('fade','loading'),
			)) ?></li>
			<li><?php echo link_to_remote('Gesti&oacute;n de Deudores', array(
			'update' 	=> 'modulo',
			'url'    	=> 'administracion/indexdeudor',
			'loading'	=> visual_effect('appear','loading').
							visual_effect('highlight','modulo',array('duration' => 0.5)),
			'complete'	=> visual_effect('fade','loading'),
			)) ?></li>
			<li><?php echo link_to_remote('Gesti&oacute;n de Tribunales', array(
			'update' 	=> 'modulo',
			'url'    	=> 'administracion/indextribunal',
			'loading'	=> visual_effect('appear','loading').
							visual_effect('highlight','modulo',array('duration' => 0.5)),
			'complete'	=> visual_effect('fade','loading'),
			)) ?>
			</li>
		</ul>
	</div>	
	<?php endif; ?>
	<?php if ($sf_user->hasCredential('abogado') || $sf_user->hasCredential('secretaria') || $sf_user->hasCredential('procurador')): ?>
		<h2 id="juicio1"  class="toggle right">Juicios
		<?php /*	echo link_to_function('Juicios',
  				visual_effect('blindDown','juicios-menu').
  				visual_effect('highlight','juicios-menu').
  				visual_effect('fade','juicio1',array('duration' => 0)).
  				visual_effect('appear','juicio2',array('duration' => 0))
				);*/ ?>
		</h2>
		<h2 id="juicio2" class="toggle down" style="display:none">
		<?php /*	echo link_to_function('Juicios',
  				visual_effect('blindUp','juicios-menu').
  				visual_effect('highlight','juicios-menu').
  				visual_effect('fade','juicio2',array('duration' => 0)).
  				visual_effect('appear','juicio1',array('duration' => 0))
				);*/ ?>
		</h2>
	<div id="juicios-menu" class="content">
	<!-- <div id="juicios-menu" class="content" style="display:none"> -->
		<ul>
			<li><?php echo link_to_remote('Gesti&oacute;n de Causas', array(
			'update' 	=> 'modulo',
			'url'    	=> 'juicios/indexcausa',
			'loading'	=> visual_effect('appear','loading').
							visual_effect('highlight','modulo',array('duration' => 0.5)),
			'complete'	=> visual_effect('fade','loading'),
			)) ?></li>
			<li><?php echo link_to_remote('Gesti&oacute;n de Diligencias', array(
			'update' 	=> 'modulo',
			'url'    	=> 'juicios/indexdiligencia',
			'loading'	=> visual_effect('appear','loading').
							visual_effect('highlight','modulo',array('duration' => 0.5)),
			'complete'	=> visual_effect('fade','loading'),
			)) ?></li>
			<li><?php echo link_to_remote('Gesti&oacute;n de Abonos', array(
			'update' 	=> 'modulo',
			'url'    	=> 'juicios/indexabono',
			'loading'	=> visual_effect('appear','loading').
							visual_effect('highlight','modulo',array('duration' => 0.5)),
			'complete'	=> visual_effect('fade','loading'),
			)) ?></li>
			<li><?php echo link_to_remote('Gesti&oacute;n de Gastos', array(
			'update' 	=> 'modulo',
			'url'    	=> 'juicios/indexgasto',
			'loading'	=> visual_effect('appear','loading').
							visual_effect('highlight','modulo',array('duration' => 0.5)),
			'complete'	=> visual_effect('fade','loading'),
			)) ?></li>
		</ul>
	</div>
	<?php endif; ?>
	<?php if ($sf_user->hasCredential('abogado') || $sf_user->hasCredential('secretaria') || $sf_user->hasCredential('procurador')): ?>
		<h2 id="informe1"  class="toggle right">Informes
		<?php /*	echo link_to_function('Informes',
  				visual_effect('blindDown','informes_menu').
  				visual_effect('highlight','informes_menu').
  				visual_effect('fade','informe1',array('duration' => 0)).
  				visual_effect('appear','informe2',array('duration' => 0))
				); */?>
		</h2>
		<h2 id="informe2" class="toggle down" style="display:none">
		<?php /*	echo link_to_function('Informes',
  				visual_effect('blindUp','informes_menu').
  				visual_effect('highlight','informes_menu').
  				visual_effect('fade','informe2',array('duration' => 0)).
  				visual_effect('appear','informe1',array('duration' => 0))
				); */?>
		</h2>
	<div id="informes_menu" class="content">
	<!-- <div id="informes_menu" class="content" style="display:none"> -->
		<ul>
			<li><?php echo link_to_remote('Gesti&oacute;n de Informes', array(
			'update' 	=> 'modulo',
			'url'    	=> 'informes/indexinforme',
			'loading'	=> visual_effect('appear','loading').
							visual_effect('highlight','modulo',array('duration' => 0.5)),
			'complete'	=> visual_effect('fade','loading'),
			)) ?></li>
			<li><?php echo link_to_remote('Gesti&oacute;n de Cartas', array(
			'update' 	=> 'modulo',
			'url'    	=> 'informes/indexcarta',
			'loading'	=> visual_effect('appear','loading').
							visual_effect('highlight','modulo',array('duration' => 0.5)),
			'complete'	=> visual_effect('fade','loading'),
			)) ?></li>
			<li><?php echo link_to_remote('Gesti&oacute;n de Escritos', array(
			'update' 	=> 'modulo',
			'url'    	=> 'informes/indexescrito',
			'loading'	=> visual_effect('appear','loading').
							visual_effect('highlight','modulo',array('duration' => 0.5)),
			'complete'	=> visual_effect('fade','loading'),
			)) ?></li>
		</ul>
	</div>
	<?php endif; ?>
